<template>
  <div class="root" v-if="echongs">
    <div>
      <a :href="echongs.data.datas.list[3].data.vipTost.target.param">
        <span class="ddyltitle">{{
          echongs.data.datas.list[3].data.left_title
        }}</span>
        <span class="ddyltnav"
          >&nbsp;&nbsp;&nbsp;{{
            echongs.data.datas.list[3].data.vipTost.tips
          }}</span
        >
        <div
          class="ddyy1"
          v-for="v in echongs.data.datas.list[3].data.vipTost.list"
          :key="v.img_url"
        >
          <img class="ddyimg1" :src="v.img_url" alt="" /><br />
          <p>￥{{ v.cash }}</p>
        </div></a
      >
    </div>
    <div >
      <a class="qdcj" :href="echongs.data.datas.list[3].data.sign_url" v-if="echongs.data.datas.list[3].data.sign">
        <span class="ddyltitle">{{ echongs.data.datas.list[3].data.right_title }}</span>
         <span class="ddyltnav ddyltnav2">{{echongs.data.datas.list[3].data.sign.level_appendtext}}</span>
         <div class="days">
           <div v-for="(v,i) in echongs.data.datas.list[3].data.sign.dataList" :key="i">
             <div>第{{v.day}}天</div>
             <img :src="v.image" alt="">
           </div>
         </div>
      </a>
    </div>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "dandanyouli",
  data() {
    return {};
  },
  computed: {
    ...mapState(["echongs"]),
  },
};
</script>

<style lang="less" scoped>
.days{
  width: 3.052rem;
  height: 2.018rem;
  position: relative;
  box-sizing: border-box;
  padding: .1rem ;
  top: -0.3rem;
  background-color: rgb(240, 234, 234);
  margin: .1rem auto;
  display: flex;
  justify-content: space-between;
  >div:nth-child(1),>div:nth-child(2){
    border: 1px solid rgb(255, 146, 21);
  }
  >div{
    position: relative;
    border-radius: .1rem;
    top: 0;
    height: 100%;
    background-color: #fff;
    width: 30%;
    text-align: center;
    >div{
      font-size: .24rem;
    }
    >img{
      width: .36rem;
    }
  }
}
.qdcj{
  display: block;
  width: 100%;
  height: 100%;
  // background-color: rgb(218, 78, 78);
}
.root {
  background-color: rgb(247, 247, 247);
  box-sizing: border-box;
  padding: 0 0.1rem;
  width: 7.504rem;
  height: 3.058rem;
  display: flex;
  justify-content: space-between;
  .ddyltitle {
    font-size: 0.28rem;
    font-weight: 700;
    position: relative;
    width: 1.12rem;
    height: 0.448rem;
    top: -15px;
    left: 5px;
  }
  a {
    color: #000;
  }
  > div {
    // display: inline-block;
    border-radius: 0.2rem;
    width: 48%;
    height: 3.058rem;
    background-color: #fff;
    // border: red 1px solid;
  }
  .ddyltnav {
    display: inline-block;
    width: 1.832rem;
    height: 0.768rem;
    font-size: .24rem;
    background: #ef8166;
    border-radius: .6rem;
    color: #fff;
    transform: scale(0.64);
    text-align: center;
  }
  .ddyltnav2{
    position: relative;
    top: -0.3rem;
    padding: .04rem;
    padding-bottom: .07rem;
    height: .26rem;
    font-size: .24rem;
  }
  .ddyy1 {
    display: inline-block;
    text-align: center;
    width: 50%;
    > p {
      font-size: .24rem;
      display: block;
      margin: 0;
      width: 100%;
      text-align: center;
      font-weight: 600;
    }
  }
  .ddyimg1 {
    width: 1.226rem;
  }
}
</style>